dxp-ux

(0 reviews)

POST Create Payment (TMF-676)

CreatePayment

[POST]

This call is to create a payment using billingAccountNumber for a POSTPAID customer.

Request URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/payment

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
N
channelIdstringChannel to business:
Allowed value: APP
Y
lobstringThe Line of Business Identifier Allowed value:
POSTPAID
M
targetSystemStringTo identify the bss system
Eg: aria
M

Request Body

{
    "account": {
        "id": "23541000-23542356",
        "@type": "CustomerAccountRef"
    },
    "amount": {
        "value": 11.6,
        "unit": "USD"
    },
    "paymentMethod": {
        "id": "PM-a6Idq00000005FpEAI",
        "@type": "PaymentMethodRef"
    },
    "@type": "Payment"
}
Request Data Model

This table include the field which are required to create payment in aria system.

nametypedescriptionrequired
account.idstringCustomer billing account idY
account.@typestringStatic text “CustomerAccountRef”N
amount.valueNumberPayment AmountN
amount.unitstring“USD” , unit of amountN
paymentmethod.idstringPayment method IdY
paymentmethod.@typestring“PaymentMethodRef” static text to refer the objectN
@typestring“Payment” to refer the objectN

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible success response.

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

{
    "id": "1642086856",
    "authorizationCode": "1642673206",
    "description": "476679901",
    "status": "done",
    "statusDate": "2022-01-20T13:00:00Z",
    "account": {
        "id": "23541000-23542356",
        "@type": "CustomerAccountRef"
    },
    "amount": {
        "value": 11.6,
        "unit": "USD"
    },
    "paymentMethod": {
        "id": "PM-a6Idq00000005FpEAI",
        "@type": "PaymentMethodRef"
    },
    "@type": "Payment"
}
Response Data Model
nametypedescriptionrequired
idstringProcessor Payment idY
statusstringvalue "done" if payment is succesfulY
statusdatedatetimeStatus dateN
authorizationcodestringAuthorization code provided by the issuing bankY
descrptionstringThe unique identifier for a given transactionY
account.idstringCustomer billing account idY
account.@typestringStatic text “CustomerAccountRef”N
amount.valueNumberPayment AmountN
amount.unitstring“USD” , unit of amountN
paymentmethod.idstringPayment method IdY
paymentmethod.@typestring“PaymentMethodRef” static text to refer the objectN
@typestring“Payment” to refer the objectN

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
    "errors": [
        {
            "code": 400,
            "message": "VALIDATION:BLANK_STRING",
            "description": "Account Id is mandatory, cannot be blank"
        }
    ]
}
{
    "errors": [
        {
            "code": 400,
            "message": "ARIA:CREATEPAYMENT",
            "description": "4020 | Balance is less than zero"
        },
        {
            "code": 400,
            "message": "ARIA:BUSINESS_ERROR",
            "description": "4039 | Collection not attempted since a negative balance exists on the account"
        }
    ]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method get not allowed for : /{businessId}/payment"
        }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation POST /payment for Business Id: xxxx not implemented"
    }]
  }

Reviews